﻿using GrainManage.Web.Resources;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace GrainManage.Web.Models.Contact
{
    public class AddContactModel
    {
        [Display(ResourceType = typeof(ContactResx), Name = "Address")]
        public string Address { get; set; }

        [Required(ErrorMessageResourceType = typeof(ContactResx), ErrorMessageResourceName = "Area")]
        [Display(ResourceType = typeof(ContactResx), Name = "Area")]
        public string Area { get; set; }

        [Display(ResourceType = typeof(ContactResx), Name = "BirthDate")]
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")]
        public DateTime? BirthDate { get; set; }

        [Display(ResourceType = typeof(ContactResx), Name = "Cellphone")]
        public string Cellphone { get; set; }

        [Required(ErrorMessageResourceType = typeof(ContactResx), ErrorMessageResourceName = "ContactName")]
        [Display(ResourceType = typeof(ContactResx), Name = "ContactName")]
        public string ContactName { get; set; }

        [Display(ResourceType = typeof(ContactResx), Name = "Email")]
        public string Email { get; set; }

        [Display(ResourceType = typeof(ContactResx), Name = "Gender")]
        public string Gender { get; set; }

        [Required(ErrorMessageResourceType = typeof(ContactResx), ErrorMessageResourceName = "ImageID")]
        [Display(ResourceType = typeof(ContactResx), Name = "ImageID")]
        public int? ImageID { get; set; }

        [Display(ResourceType = typeof(ContactResx), Name = "QQ")]
        public string QQ { get; set; }

        [Display(ResourceType = typeof(ContactResx), Name = "Remarks")]
        public string Remarks { get; set; }

        [Display(ResourceType = typeof(ContactResx), Name = "Telephone")]
        public string Telephone { get; set; }
    }
}